﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RockCompany.Common.Lib
{
    [Serializable]
    public class TrialTime
    {
        public const int nTrialDays = 30;

        private int nMinutes;
        public int Minutes 
        {
            get { return nMinutes; }
            set { nMinutes = value; } 
        }

        private int nHours;
        public int Hours 
        {
            get { return nHours; }
            set { nHours = value; } 
        }

        private int nDays;
        public int Days 
        {
            get { return nDays; }
            set { nDays = value; } 
        }

        public void cal()
        {
             while (nMinutes >= 60)
            {
                nHours++;
                nMinutes -= 60;
            }

            while (nHours >= 24)
            {
                nDays++;
                nHours -= 24;
            }
        }
    }
}
